// SensorCard.qml
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

Rectangle {
    property string title: ""
    property string value: ""
    property string icon: ""
    
    width: 200
    height: 80
    radius: 8
    color: "#2C313A"
    
    RowLayout {
        anchors.fill: parent
        anchors.margins: 10
        spacing: 15
        
        Image {
            source: icon
            Layout.preferredWidth: 40
            Layout.preferredHeight: 40
        }
        
        Column {
            Layout.fillWidth: true
            spacing: 5
            
            Text {
                text: title
                color: "#ABB2BF"
                font.pixelSize: 14
            }
            
            Text {
                text: value
                color: "white"
                font.bold: true
                font.pixelSize: 18
            }
        }
    }
}